
package com.hlkj.pay.infrastructure.model.ad;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * ad订单退款信息表
 * 
 * @TableName t_ad_order_refund
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_ad_refund_order")
public class AdRefundOrderDO extends BaseDO {

    /**
     * 退款订单号
     */
    @Schema(description = "退款订单号")
    private String refundOrderNo;
    /**
     * 退款订单号
     */
    @Schema(description = "平台退款订单号")
    private String platRefundOrderNo;
    

    /**
     * 商户退款单号
     */
    @Schema(description = "退款申请单号")
    private String refundApplyNo;

    /**
     * 平台订单号
     */
    @Schema(description = "订单号")
    private String mchOrderNo;
    

    /**
     * 商户商户号
     */
    @Schema(description = "商户商户号")
    private String sn;

    /**
     * 商户商户号
     */
    @Schema(description = "商户商户号")
    private String appId;
    /**
     * 商户商户号
     */
    @Schema(description = "广告id")
    private Long adId;
    /**
     * 退款原因
     */
    @Schema(description = "退款原因")
    private String refundReason;

    /**
     * 是否有退款，1 未退款 2 退款中 4 退款完成
     */
    @Schema(description = "是否有退款，1 未退款 2 退款中  4 退款完成")
    private Integer refundStatus;

    /**
     * 本次退款金额
     */
    @Schema(description = "本次退款金额")
    private BigDecimal refundAmount;

    /**
     * 实际退款金额
     */
    @Schema(description = "实际退款金额")
    private BigDecimal actualRefundAmount;

    /**
     * 累计退款金额
     */
    @Schema(description = "累计退款金额")
    private BigDecimal totalRefundAmount;

    /**
     * 累计手续费退款金额
     */
    @Schema(description = "累计手续费退款金额")
    private BigDecimal totalFeeAmount;

    /**
     * 退款成功时间
     */
    @Schema(description = "退款成功时间")
    private Long successTime;

    /**
     * 第三方返回的信息
     */
    @Schema(description = "第三方返回的信息")
    private String remark;
    /**
     * 订单金额
     */
    @Schema(description = "订单金额")
    private BigDecimal amount;
}
